/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package isd.general.modelo;

import java.io.Serializable;
import javax.persistence.Embeddable;

/**
 *
 * @author ctrosch
 */
@Embeddable
public class GR_FormularioPK implements Serializable {

    private String modfor;
    private String codfor;

    public GR_FormularioPK() {

    }

    public GR_FormularioPK(String modfor, String codfor) {
        this.modfor = modfor;
        this.codfor = codfor;
    }
    
    public String getCodfor() {
        return codfor;
    }

    public void setCodfor(String codfor) {
        this.codfor = codfor;
    }

    public String getModfor() {
        return modfor;
    }

    public void setModfor(String modfor) {
        this.modfor = modfor;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final GR_FormularioPK other = (GR_FormularioPK) obj;
        if ((this.modfor == null) ? (other.modfor != null) : !this.modfor.equals(other.modfor)) {
            return false;
        }
        if ((this.codfor == null) ? (other.codfor != null) : !this.codfor.equals(other.codfor)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 53 * hash + (this.modfor != null ? this.modfor.hashCode() : 0);
        hash = 53 * hash + (this.codfor != null ? this.codfor.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return "GR_FormularioPK{" + "modfor=" + modfor + "codfor=" + codfor + '}';
    }


}
